/*     */ package com.umeng.newxp.view.widget;
/*     */ 
/*     */ import android.view.MotionEvent;
/*     */ import android.view.View;
/*     */ import android.view.View.OnTouchListener;
/*     */ 
/*     */ class c
/*     */   implements View.OnTouchListener
/*     */ {
/*     */   c(SwipeViewPointer paramSwipeViewPointer)
/*     */   {
/*     */   }
/*     */ 
/*     */   public boolean onTouch(View paramView, MotionEvent paramMotionEvent)
/*     */   {
/*  98 */     if (SwipeViewPointer.a(this.a) != null) {
/*  99 */       switch (paramMotionEvent.getAction())
/*     */       {
/*     */       case 1:
/* 102 */         if (this.a.getOrientation() == 0) {
/* 103 */           if (paramMotionEvent.getX() < this.a.getWidth() / 2)
/*     */           {
/* 105 */             if (SwipeViewPointer.b(this.a) > 0) {
/* 106 */               SwipeViewPointer.a(this.a).b();
/*     */             }
/*     */ 
/*     */           }
/* 110 */           else if (SwipeViewPointer.b(this.a) < SwipeViewPointer.c(this.a) - 1) {
/* 111 */             SwipeViewPointer.a(this.a).a();
/*     */           }
/*     */ 
/*     */         }
/* 115 */         else if (paramMotionEvent.getY() < this.a.getHeight() / 2)
/*     */         {
/* 117 */           if (SwipeViewPointer.b(this.a) > 0) {
/* 118 */             SwipeViewPointer.a(this.a).b();
/*     */           }
/*     */ 
/*     */         }
/* 122 */         else if (SwipeViewPointer.b(this.a) < SwipeViewPointer.c(this.a) - 1) {
/* 123 */           SwipeViewPointer.a(this.a).a();
/*     */         }
/*     */ 
/* 128 */         return false;
/*     */       }
/*     */     }
/* 131 */     return true;
/*     */   }
/*     */ }

/* Location:           C:\Users\Administrator\Desktop\umeng_sdk.jar
 * Qualified Name:     com.umeng.newxp.view.widget.c
 * JD-Core Version:    0.6.2
 */